package com.turing.usdtpay.mvp.contract;

import android.app.Activity;
import android.net.Uri;

import com.turing.usdtpay.entity.AuthData;
import com.turing.usdtpay.mvp.presenter.BasePresenter;
import com.turing.usdtpay.mvp.view.BaseView;

import java.io.File;

/**
 * @作者：JAY
 * @创建时间：2019/11/5 9:57
 * @描述：
 **/
public class AuthContract {

    public interface View extends BaseView<Present> {
        public void getSuccess(AuthData data);

        public void uploadSuccess(int type);

        public void saveSuccess();

        public void onFail(String error);

        public void onProgress(int progress);
    }

    public interface Present extends BasePresenter {
        public void uploadImg(Activity activity, String id, int type, File file);

        public void getAuthInfo(Activity activity);

        public void saveAuthInfo(Activity activity,String name,String num);
    }
}
